import axios from '../axios/index.js';
 
const http = {
  get(url, params = {}) {
    return axios.get(url, { params });
  },
  post(url, data = {}) {
    return axios.post(url, data);
  },
  // 可以继续添加其他方法，如 put, delete 等
};
 
export default http;